import request from '@/utils/request'

// 查询用户意见列表
export function listUserAdvice(query) {
  return request({
    url: '/api/v1/advice/list',
    method: 'get',
    params: query
  })
}

// 获取用户意见详情
export function getUserAdvice(id) {
  return request({
    url: '/advice/user/' + id,
    method: 'get'
  })
}

// 处理用户意见
export function processUserAdvice(data) {
  return request({
    url: '/advice/user/process',
    method: 'put',
    data: data
  })
}